<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
    <title>用户登录中心</title>
    <link href="/Public/css/demo.css" rel="stylesheet" />
    <script type="text/javascript" src="/Public/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/Public/layer/layer.js"></script>
    <script type="text/javascript" src="/Public/js/demo.js"></script>
</head>
<body>
    <div id="dloginbox">
        <div class="loginitem"><input name="username" type="text"  id="txtUserName" placeholder="请输入用户名"/></div>
        <div class="loginitem"><input name="password" type="password" id="txtPwd" placeholder="请输入密码" /></div>
        <div class="remember"> <input type="checkbox" name="remember" id="rem" /> <label for="rem">记住一周</label> </div>
        <div class="loginitem"><a href="javascript:;" onClick="Login()">登录</a></div>
        <div class="register"><a href="<?php echo U('User/register');?>">马上注册>></a></div>
    </div>
</body>
<script>
    // 设定AJAX发送请求时的URL地址
    var url = "<?php echo U('Login/index');?>";
    $(function(){
        ShowLoginBox();
    })
</script>
</html>